package com.ml.mall.service.shopping;

import com.ml.mall.bean.req.CouponListCheckReq;
import com.ml.mall.bean.req.ProductCartReq;
import com.ml.mall.bean.res.ShoppingCartQueryRes;
import com.ml.mall.bean.res.vo.VariantVO;
import com.ml.mall.entity.coupon.SysCoupon;

import java.util.List;

/**
 * Created by kyyang on 2021/5/22 18:30
 */
public interface SysShoppingCartService {


    /**
     * @description: 添加商品到购物车
     * @author kyyang
     * @date 2021/2/28 12:17
     * @version 1.0
     */
    void addProduct2Cart(List<ProductCartReq> productCartReq);


    /**
     * @description: 从购物车中删除商品
     * @author kyyang
     * @date 2021/2/28 13:13
     * @version 1.0
     */
    void delProduct2Cart(ProductCartReq productCartReq);


    /**
     * @description: 清空购物车
     * @author kyyang
     * @date 2021/2/28 13:15
     * @version 1.0
     */
    void clearCart();


    /**
     * @description: 修改购物车商品
     * @author kyyang
     * @date 2021/2/28 13:17
     * @version 1.0
     */
    void modifyProduct2Cart(ProductCartReq productCartReq);

    /**
     * @description: 查询购物车商品
     * @author kyyang
     * @date 2021/2/28 13:19
     * @version 1.0
     */
    ShoppingCartQueryRes queryProduct2Cart();

    /**
     * @description: 查询购物车商品：只查商品
     * @author daizh
     * @date 2021/07/09 13:19
     * @version 1.0
     */
    List<VariantVO> queryVariantFromCart();

    /**
     * @description: 根据订单删除购物车相关商品
     * @author kyyang
     * @date 2021/2/28 13:22
     * @version 1.0
     */
    void delProduct2CartByOrder(List<ProductCartReq> list);


}
